package com.wodsy.phoenix.dataobject.goodsc.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * TbFreightTemplateDestination entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_freight_template_destination", catalog = "goodsc")
public class FreightTemplateDestination implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private Integer ftId; 		//运费模版id
	private Integer inRange;	//首重
	private Integer outRangeWeight;		//续重
	private String ftdDestination;		//目的地名称
	private Integer outRangePrice;		//续费
	private Integer inRangePrice;		//首费
	private Date addTime;			//添加时间
	private Date updateTime;		//添加时间

	// Constructors

	/** default constructor */
	public FreightTemplateDestination() {
	}

	/** minimal constructor */
	public FreightTemplateDestination(String ftdDestination,
			Integer outRangePrice, Integer inRangePrice) {
		this.ftdDestination = ftdDestination;
		this.outRangePrice = outRangePrice;
		this.inRangePrice = inRangePrice;
	}

	/** full constructor */
	public FreightTemplateDestination(Integer ftId, Integer inRange,
			Integer outRangeWeight, String ftdDestination,
			Integer outRangePrice, Integer inRangePrice, Date addTime,
			Date updateTime) {
		this.ftId = ftId;
		this.inRange = inRange;
		this.outRangeWeight = outRangeWeight;
		this.ftdDestination = ftdDestination;
		this.outRangePrice = outRangePrice;
		this.inRangePrice = inRangePrice;
		this.addTime = addTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "ft_id")
	public Integer getFtId() {
		return this.ftId;
	}

	public void setFtId(Integer ftId) {
		this.ftId = ftId;
	}

	@Column(name = "in_range")
	public Integer getInRange() {
		return this.inRange;
	}

	public void setInRange(Integer inRange) {
		this.inRange = inRange;
	}

	@Column(name = "out_range_weight")
	public Integer getOutRangeWeight() {
		return this.outRangeWeight;
	}

	public void setOutRangeWeight(Integer outRangeWeight) {
		this.outRangeWeight = outRangeWeight;
	}

	@Column(name = "ftd_destination", nullable = false, length = 100)
	public String getFtdDestination() {
		return this.ftdDestination;
	}

	public void setFtdDestination(String ftdDestination) {
		this.ftdDestination = ftdDestination;
	}

	@Column(name = "out_range_price", nullable = false)
	public Integer getOutRangePrice() {
		return this.outRangePrice;
	}

	public void setOutRangePrice(Integer outRangePrice) {
		this.outRangePrice = outRangePrice;
	}

	@Column(name = "in_range_price", nullable = false)
	public Integer getInRangePrice() {
		return this.inRangePrice;
	}

	public void setInRangePrice(Integer inRangePrice) {
		this.inRangePrice = inRangePrice;
	}

	@Column(name = "add_time", length = 19)
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}